{include file="admin/header.html} 
<div class="title">
    <h3>相册管理</h3>
</div>
<div class="condition">
    <form action="/admin/album" >
        项目:<select name="project">
            <option value="">所有</option>
            {foreach from=$show_projects item=v key=k}
            <option value="{$v}">{$k}</option>
            {/foreach}
        </select>
        关键字:<input type="text" name="key" />
        <input type="submit" value="筛选"/>
        <a href="/admin/addalbum" style="float:right;">新建相册</a>
    </form>
</div>
<div class="table_zone">
    {foreach from=$albums item=v}
    <div class="album">
        <a href="/admin/photo?albumid={$v.albumid}">
            <img src="{$v.cover}" width="135" height="120"></a>
        <span>{$v.name}
            <a href="/admin/editalbum?albumid={$v.albumid}">编辑</a>
            <a href="javascript:;">删除</a></span>
    </div>
    {/foreach}
    <div class="clear"></div>
    <div class="paging">{$paging}</div>
</div>
{literal}
<script>
</script>
{/literal}
{include file="admin/footer.html"}